#include <bits/stdc++.h>

using namespace std;
class Solution
{
public:
    int minCount(vector<int> &coins)
    {
        int ret = 0;
        for (auto &e : coins)
        {
            ret += e / 2;
            if (e % 2)
            {
                ret += 1;
            }
        }
        return ret;
    }
};